package ${package.queryPkg};

import cn.hutool.core.bean.BeanUtil;
import ${package.Entity}.${entity};
<#list table.importPackages as pkg>
import ${pkg};
</#list>
<#if springdoc>
import io.swagger.v3.oas.annotations.media.Schema;
<#elseif swagger>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
</#if>
<#if entityLombokModel>
import lombok.Data;
<#if chainModel>
import lombok.experimental.Accessors;
</#if>
</#if>
import lombok.EqualsAndHashCode;
<#if entitySerialVersionUID>

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.diaohw.platform.common.obj.page.PageDto;
</#if>
/**
* ${table.comment!} DTO
*
* @author ${author}
* @since ${date}
*/
<#if entityLombokModel>
@Data
    <#if chainModel>
@Accessors(chain = true)
    </#if>
</#if>
<#if springdoc>
@Schema(name = "${query}", description = "${table.comment!} DTO")
<#elseif swagger>
@ApiModel(value = "${entity}对象", description = "${table.comment!}")
</#if>
@EqualsAndHashCode(callSuper = true)
public class ${query} extends PageDto {
<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>

    <#if field.comment!?length gt 0>
    /**
     * ${field.comment}
     */
<#if springdoc>
    @Schema(description = "${field.comment}")
<#elseif swagger>
    @ApiModelProperty("${field.comment}")
<#else>
    /**
     * ${field.comment}
     */
</#if>
    </#if>
    private ${field.propertyType} ${field.propertyName};
</#list>

}
